﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SLookMountReply extends IMessageBase
    {
        public var updateCode:int;
        public var type:int;
        public var ownEntityId:SEntityId;
        public var mountInfo:SLookPlayerMountInfo;
        public const _type:int = 15216;
        public static var _regist:SLookMountReply = new SLookMountReply(true);

        public function SLookMountReply(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SLookMountReply();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.updateCode);
            param1.writeInt(this.type);
            this.ownEntityId.__write(param1);
            this.mountInfo.__write(param1);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.updateCode = param1.readInt();
            this.type = param1.readInt();
            this.ownEntityId = new SEntityId();
            this.ownEntityId.__read(param1);
            this.mountInfo = new SLookPlayerMountInfo();
            this.mountInfo.__read(param1);
            return;
        }// end function

    }
}
